home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000228_kramer@eig.com_Tue Apr 20 10:46:16 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
3KB
Path: newsmaster.cc.columbia.edu!panix!newsxfer.eecs.umich.edu!lenny.tc.umn.edu!msc1.onvoy!ply1.onvoy!onvoy.com!feed.news.qwest.net!news.uswest.net.POSTED!not-for-mail
From: Kramer <kramer@eig.com>
Subject: Re: Kermit-C and logging
Newsgroups: comp.protocols.kermit.misc
References: <oRwfc.343$kb.20640@news.uswest.net> <slrnc7tae8.4fi.fdc@sesame.cc.columbia.edu>
Lines: 50
User-Agent: KNode/0.7.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Message-ID: <Cmahc.6$C73.7321@news.uswest.net>
Date: Tue, 20 Apr 2004 07:22:25 -0700
NNTP-Posting-Host: 206.253.219.206
X-Trace: news.uswest.net 1082470946 206.253.219.206 (Tue, 20 Apr 2004 09:22:26 CDT)
NNTP-Posting-Date: Tue, 20 Apr 2004 09:22:26 CDT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14945
Frank da Cruz wrote:
> On 2004-04-15, root <root@sbic.com> wrote:
> : I'm trying to log the call records for our VoIP system using Kermit. It
> : works fine individually, but I have 5 seperate boxes that I telnet into
> : on port 1752, the data streams through and I have Kermit grab it and
> : file it into a log.
> :
> : It's a LOT cheaper than any call logging program out there and it works
> : great. The problem I have however is that I can't get my linux box to
> : automatically run these 5 seperate kermit sessions on boot. I'm using
> : Red Hat Enterprise and I also want to be able to monitor these sessions
> : with Big Brother.
> :
> What's the problem? You can start up one process on boot, but not five?
> Or you can't start up any processes on boot?
>
> In the latter case, there is always the possibility that Kermit is
> trying to print some message to standard output, when there is no standard
> output (this should not happen, but it's possible). In that case, part
> of your Kermit invocation should be to redirect standard output to a file
> or to /dev/null.
>
> Do you want all five processes to log to the same file? Kermit is not
> designed for that, but it can still be done with some creative script
> programming. Basically, you need your script to not just blindly log
> the incoming stream to a file, but to parse it looking for records
> (lines or whatever), and then when it gets one, open the log file for
> exclusive append access (and if fail, keep trying until it succeeds),
> write out the record, close the file. You might also want to put
> timestamps and session signatures on each record, in case they don't
> already have these.
>
> - Frank
Thanks for the fast response Frank!
I'm actually looking to start 5 processes at boot but I don't know how to
get that done. Do I put the kermit config file in init.d or rc.d? Also, I
just need to log to 5 seperate files, don't need to dump them all into one.
One other problem I have noticed is that I can't seem to keep kermit
attached to my VoIP box if the box loses communication for a few minutes
like during a reboot. When the box comes back up the stream from it
continues automatically but my local kermit box disconnects. Is there a
keep alive command that I can use?
Thanks again,
Kramer